//
//  JMXBubbleLabel.h
//  JMXSDK
//
//  Created by JMX on 2020/4/27.
//  Copyright © 2020 Uniauto. All rights reserved.
//

#import "JMXBubbleView.h"

NS_ASSUME_NONNULL_BEGIN

@class JMXBubbleLabel;
@protocol JMXBubbleLabelDelegate <NSObject>

@optional
-(void)bubbleLabel:(JMXBubbleLabel *)bubbleLabel didSelectedLink:(NSString *)link onRange:(NSRange)range;
-(void)bubbleLabel:(JMXBubbleLabel *)bubbleLabel didSelectedPhone:(NSString *)phone onRange:(NSRange)range;
-(void)bubbleLabel:(JMXBubbleLabel *)bubbleLabel didSelectedText:(NSString *)text onRange:(NSRange)range;
-(void)bubbleLabelDidSelected:(JMXBubbleLabel *)bubbleLabel;

@end

@interface JMXBubbleLabel : JMXBubbleView

@property (nonatomic, strong) UILabel *textLabel;

@property (nonatomic, copy) NSString *text;
@property (nonatomic, strong) UIColor *textColor;
@property (nonatomic, strong) UIFont *font;

@property (nonatomic, copy, nullable) NSAttributedString *attributedText;

@property (nonatomic, weak) id<JMXBubbleLabelDelegate> delegate;

/* 字符串+显示颜色 字典数组, */
@property (nonatomic, strong) NSArray<NSString *> *matchArray;

@end

NS_ASSUME_NONNULL_END
